home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of www.BestZips.com (Collector's Edition)
/
Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO
/
stockbnd
/
oppm60.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-10-14
|
7KB
|
147 lines
Echo Off
REM ******************************************************
REM * File : Install.bat
REM * Author : Stephen Williams
REM * Date : Sept. 3, 1992
REM * Revised: Aug 16, 1994
REM * Purpose: Installation - OPPM 5.X
REM ******************************************************
if "%1" == "" goto help
for %%f in (A:,a:,B:,b:,?,A,a,B,b) do if %1.==%%f. goto Help
for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
for %%f in (X:,x:,Y:,y:,Z:,z:) do if %1.==%%f. goto Help
REM **************************
REM HARD DISK INSTALLATION
REM **************************
if not exist %1:\nul goto help
if not exist OPPM_EXE.EXE goto BadDef
if not exist OPPM_DAT.EXE goto BadDef
if not exist README.1ST goto BadDef
if not exist ORDER.DOC goto BadDef
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OWL PERSONAL PORTFOLIO MANAGER INSTALLATION │
Echo │ │
Echo │ Install Main Program & Help Files on %1:\OPPM6 │
Echo │ │
if exist %1:\OPPM6\OPPM.EXE goto ExistEXE
if exist %1:\OPPM6\CONFIG.DBF goto ExistEXE
if exist %1:\OPPM6\HELP.DBF goto ExistEXE
if exist %1:\OPPM6\HELP.DBT goto ExistEXE
if exist %1:\OPPM6\MPRN.DAT goto ExistEXE
if exist %1:\OPPM6\ORDER.DOC goto ExistEXE
:InsMain
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
OPPM_EXE %1:\OPPM6
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OWL PERSONAL PORTFOLIO MANAGER INSTALLATION │
Echo │ │
Echo │ Installing Sample Data Files on %1:\OPPM6 │
Echo │ │
if exist %1:\OPPM6\FOL.DBF goto ExistDat
if exist %1:\OPPM6\SEC.DBF goto ExistDat
if exist %1:\OPPM6\PUR.DBF goto ExistDat
if exist %1:\OPPM6\INC.DBF goto ExistDat
if exist %1:\OPPM6\AL.DBF goto ExistDat
if exist %1:\OPPM6\PRICE.DBF goto ExistDat
:InsDat
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
OPPM_DAT %1:\OPPM6
COPY README.1ST %1:\OPPM6\README.1ST
COPY ORDER.DOC %1:\OPPM6\ORDER.DOC
%1:
CD \OPPM6
goto End
:ExistEXE
Echo │ IMPORTANT: Program already exists on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press Y if you are upgrading from an earlier version │
Echo │ or want to reinstall the program. │
Echo │ │
Echo │ Press N to retain your existing program & help files.│
goto InsMain
:ExistDat
Echo │ IMPORTANT: Data files already exist on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press N to retain your existing data files. │
Echo │ │
Echo │ Press Y to replace your existing data files with the │
Echo │ sample data files. │
goto InsDat
:BadDef
CLS
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OWL PERSONAL PORTFOLIO MANAGER (OPPM) - Installation HELP │
Echo │ │
Echo │ INSTALL must be run from the drive where INSTALL.BAT resides. │
Echo │ │
Echo │ If you are installing OPPM from a floppy disk in drive A, │
Echo │ type "A:" before running INSTALL. │
Echo │ │
Echo │ Example: A: (Set Default To Drive A) │
Echo │ INSTALL C (Install Program on drive C) │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
:Help
Cls
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OWL PERSONAL PORTFOLIO MANAGER (OPPM) - Installation HELP │
Echo │ │
Echo │ │
Echo │ OPPM must be installed on a HARD DISK DRIVE. │
Echo │ │
Echo │ The install program decompresses archive files and copies them │
Echo │ to subdirectory \OPPM6 on the designated hard disk drive. If │
Echo │ \OPPM6 does not exist on the designated hard disk, it will be │
Echo │ created for you. │
Echo │ │
Echo │ Syntax for the command is: INSTALL d │
Echo │ │
Echo │ where "d" is the hard disk drive letter where you want │
Echo │ the program installed. │
Echo │ │
Echo │ Examples: INSTALL C (Note no colon is typed) │
Echo │ INSTALL D │
Echo │ etc. │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
REM ************************
REM End Of OPPM Installation
REM ************************
:end
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ OWL PERSONAL PORTFOLIO MANAGER INSTALLED ON %1:\OPPM6 │
Echo │ │
Echo │ To run OPPM type "OPPM" │
Echo │ │
Echo │ Please review file README.1ST for important infor- │
Echo │ mation on configuring your system. │
Echo └──────────────────────────────────────────────────────┘
:bad_end